<?php

require "smarty/Smarty.class.php";
require "includes/mysql.class.php";
require "includes/functions.php";
require "includes/config.php";

$Template = new Smarty;
$DB = new CMySQL();


$Template->compile_dir = "cache";
$Template->compile_check = true;
$Template->debugging = false;

$includes = array(
		'default'		=> 'default.php',		
		'WebLink' 		=> 'weblink.php', 		
		'Manager'		=> 'manager.php',
		'Config'		=> 'config.php',
	);

if( !isset($_GET['act']) || empty($_GET['act']) || !isset($includes[$_GET['act']]) )
{	
	exit;
}
else
{
	$action = $_GET['act'];
}

include 'includes/ajax/' . $includes[$action];

?>

